<?php


namespace App\Model;


/**
 * App\Model\Test
 *
 * @property int $id
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property string $name
 * @property int $age
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Test newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Test newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Test query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Test whereAge($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Test whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Test whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Test whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\Test whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class Test extends Base
{

    protected $table='test';

    protected $fillable=['name','age'];


    function setAgeAttribute($key)
    {


        $this->attributes['name']=777;
    }

}
